<template>
	<view class="p20">
		
			<rich-text  :nodes="contents"></rich-text>
	</view>
</template>

<script>
	import login from "@/serve/api/login.js";
	export default{
		data() {
			return {
				contents: "",
			}
		},
		async onLoad() {
			const res = await login.registerAgreementDetail({})
			console.log()
			
			
			if(res){	
				this.contents = res.data.data.content.split('<body>')[1].split('</body>')[0]
			}
		}
		
		
	}
</script>

<style>
	.p20{
		padding: 10rpx 20rpx;
	}
</style>
